package example7;

public class Main {

	public static void main(String[] args) {
        Rectangle rect = new Rectangle();
        Triangle tri = new Triangle();
        Area area;
        area = rect;
        System.out.println("Rect = "+ area.compute(1,2));
        area = tri;
        System.out.println("Tria = "+ area.compute(10,2));


	}

}
